package org.example.service;

import org.apache.ibatis.annotations.Param;
import org.example.pojo.Company;
import org.example.pojo.Job;
import org.example.pojo.JobDto;
import org.example.pojo.PageBean;

import java.util.List;

public interface JobService {
    PageBean<Job> list(Integer pageNum, Integer pageSize);

    Job findJobById(@Param("jobId") Integer jobId);

    JobDto getJobById(Integer jobId);

    List<Job> analysisJobs(String tags,String degree,String low_experience,String up_experience,String location);

    List<Job> analysisRole(String tags,String location);

    Job selectByJobId(Integer myFavorId, Integer companyId);

    void deleteJob(Integer jobId, Integer status);

    List<Job> getCompanyJobList(Integer companyId);

    void updateCompany(Company company);

    Integer getCount(List<Integer> counts);

    List<Job> getHotJobList();
    void insertJob(Job job);

}
